export namespace Axios {
  // * 请求响应参数(不包含data)
  export interface Result {
    code: string;
    msg: string;
  }

  // * 请求响应参数(包含data)
  export interface ResultData<T = any> extends Result {
    data: T;
  }
}


export namespace LoginS {
    export interface loginData {
      emplNumber: string;
      pemplwd: string;
    }
    export interface ResLogin {
      token: string;
      menus: any;
    }
  }

  export namespace Router {
    export interface RouterProp {
      path: string;
      element: React.ReactElement;
      title?: string;
      icon?: string;
      display?: number;
      children?: RouterProp[];
    }
    export interface RouterCache {
      path: string;
      element: string;
      title?: string;
      icon?: string;
      display?: number;
      children?: RouterCache[];
    }
  }
  

  export interface Store {
    routerList: Router.RouterProp[];
    login(values: LoginS.loginData): Promise<any>;
    logout(): void;
  }
  
export interface MenuSiderType {
  state: [];
}

